package parsing.google;

import core.objects.BaseObject;

public class GoogleAPI {

	private static final String API_URL = "https://www.googleapis.com/books/v1/volumes?q=";
	private static final String API_ISBN = "isbn";
	
	private static final String API_DELIMITER = ":";
	
	public static BaseObject requestBookByISBN(String isbn) {
		
		StringBuilder builder = new StringBuilder();
		builder.append(API_URL);
		builder.append(API_ISBN);
		builder.append(API_DELIMITER);
		builder.append(isbn);
		
		//if needs API_KEY, insert here
		
		return HttpConnection.doRequest(builder.toString());
	}
	
}
